package cn.hfzy;

import cn.hfzy.support.HttpsClientRequestFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @Auther: Administrator
 * @Date: 2018/12/19 15:26
 * @Description:
 */
@SpringBootApplication
public class Application {

    public static void main(String[] args) {

        SpringApplication.run(Application.class,args);
    }

    @Bean
    public RestTemplate restTemplate (){
        return new RestTemplate(new HttpsClientRequestFactory());
    }
}
